#include "hal_tlv.h"
#include "tlv_cmd.h"
#include <string.h>
#include "common.h"
#include "cfg_param.h"

// 设备模块指令表
struct CmdMapTypeSt CmdMapTypes[] = {
    // 电衰指令表：
    {"MasterToMotor",
     MODULE_TYPE_MOTOR_MESSAGE_E,
     {
         {FUNC_MOTOR_TYPE_READ_POSITION_E, sizeof(struct MotorMessageCmdSt)},
         {FUNC_MOTOR_TYPE_RUN_POSITION_E, sizeof(struct MotorMessageCmdSt)},
         {FUNC_MOTOR_TYPE_SAVE_POSITION_E, sizeof(struct MotorMessageCmdSt)},
         {FUNC_MOTOR_TYPE_VENSION_E, sizeof(struct MotorVersionCmdSt)},
         {FUNC_MOTOR_TYPE_RESET_E, sizeof(struct MotorResetCmdSt)},
         {FUNC_MOTOR_TYPE_POLL_E, sizeof(struct MotorPollCmdSt)},
         {FUNC_MOTOR_TYPE_REFRESH_CODE_E, sizeof(struct MotorRefreshCodeCmdSt)},
         {FUNC_MOTOR_TYPE_PARAMETER_E, sizeof(struct MotorParameterCmdSt)},
     }

    },
    // 激光器指令表：
    {"LaserToLaser",
     MODULE_TYPE_LASER_MESSAGE_E,
     {
         {FUNC_LASER_TYPE_SWITCH_E, sizeof(struct LaserSwitchMessageCmdSt)},
         {FUNC_LASER_TYPE_READ_ACTURAL_MESSAGE_E, sizeof(struct LaserMessageCmdSt)},
         {FUNC_LASER_TYPE_READ_EEPROM_MESSAGE_E, sizeof(struct LaserMessageCmdSt)},
         {FUNC_LASER_TYPE_SET_ACTURAL_MESSAGE_E, sizeof(struct LaserMessageCmdSt)},
         {FUNC_LASER_TYPE_SET_EEPROM_MESSAGE_E, sizeof(struct LaserMessageCmdSt)},
         {FUNC_LASER_TYPE_VENSION_E, sizeof(struct LaserVersionCmdSt)},
         {FUNC_LASER_TYPE_RESET_E, sizeof(struct LaserResetCmdSt)},
         {FUNC_LASER_TYPE_POLL_E, sizeof(struct LaserPollCmdSt)},
         {FUNC_LASER_TYPE_REFRESH_CODE_E, sizeof(struct LaserRefreshCodeCmdSt)},
         {FUNC_LASER_TYPE_PARAMETER_E, sizeof(struct LaserParameterCmdSt)},
     }},
    // 升级指令表
};